//首页模块

import request from '../utils/request'; //import导入request.js中的Service对象，起了个名字叫request

//定义了一个函数对象
export const fetchData = query => {
    return request({
        url: './table.json',
        method: 'get',
        params: query
    });
};
